package com.woniuxy.staffservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

@Getter
@Setter
@TableName("sys_dept")
@Component
public class Dept {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer pid;
    private String name;
    private String description;
    private String address;
    @TableField("createtime")
    private String createTime;
    private String status;
    @TableField(exist = false)
    private String pname;
}
